using MediatR;
using RBAC.Api.Demain.ContentManagement;
using RBAC.Api.Erroc;

namespace RBAC.Api.Read.Command.ContentManagement
{
    /// <summary>
    /// 显示科室列表
    /// </summary>
    public class ShowDepartmentsCommand : IRequest<APIResult<APIPagin<DepartmentModel>>>
    {

        /// <summary>
        /// 父级科室ID，为空时查询所有科室
        /// </summary>
        public long? ParentId { get; set; }
        /// <summary>
        /// 页码
        /// </summary>
        public int PageIndex { get; set; } = 1;

        /// <summary>
        /// 页大小
        /// </summary>
        public int PageSize { get; set; } = 10;
    }
}